package com.diandian.backend.store.service;

import com.diandian.backend.store.dto.StoreDouyinLifeStoreInfoListParamDTO;
import com.diandian.backend.store.param.StoreDouyinLifeStoreInfoDetailByCodeParam;
import com.diandian.backend.store.param.StoreDouyinLifeStoreInfoDetailByRoomIdParam;
import com.diandian.backend.store.resp.StoreDouyinLifeStoreInfoDetailResp;
import com.diandian.backend.store.resp.StoreDouyinLifeStoreInfoListResp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StoreDouyinLifeStoreInfoOpenApiService {

    @Autowired
    private StoreDouyinLifeStoreInfoService storeDouyinLifeStoreInfoService;

    public StoreDouyinLifeStoreInfoDetailResp getDetailByCode(StoreDouyinLifeStoreInfoDetailByCodeParam data){
        return storeDouyinLifeStoreInfoService.getDetail(data.toDTO());
    }

    public StoreDouyinLifeStoreInfoDetailResp getDetailByRoomId(StoreDouyinLifeStoreInfoDetailByRoomIdParam data){
        return storeDouyinLifeStoreInfoService.getDetail(data.toDTO());
    }

    public List<StoreDouyinLifeStoreInfoListResp> getList(StoreDouyinLifeStoreInfoListParamDTO data){
        return storeDouyinLifeStoreInfoService.getList(data);
    }
}
